package svc

import (
	nothingBiz "code.bydev.io/cht/customer/kyc_admin_service/internal/pkg/biz"
	"code.bydev.io/cht/customer/kyc_admin_service/internal/utils/ukafka"
	"code.bydev.io/cht/customer/kyc_admin_service/service/consumer/internal/config"
)

type ServiceContext struct {
	Config        config.Config
	NothingEnv    *nothingBiz.Environment
	KafkaProducer *ukafka.ProducerClient
}

func NewServiceContext(c config.Config) *ServiceContext {
	nothingEnv := nothingBiz.Env()
	kafkaProducer := ukafka.NewKafka(c.ProducerConfig)
	return &ServiceContext{
		Config:        c,
		NothingEnv:    nothingEnv,
		KafkaProducer: kafkaProducer,
	}
}
